import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getDriver = {
  get_driving_agent(params) {
    return axios.post(
      `${base.bd}/admin/driving_agent/lists`,
      qs.stringify(params)
    );
  },
  single_driving_agent(params) {
    return axios.post(
      `${base.bd}/admin/driving_agent/edit`,
      qs.stringify(params)
    );
  },
  add_driving_agent(params) {
    return axios.post(
      `${base.bd}/admin/driving_agent/saveadd`,
      qs.stringify(params)
    );
  },
  save_driving_agent(params) {
    return axios.post(
      `${base.bd}/admin/driving_agent/saveedit`,
      qs.stringify(params)
    );
  },
  check_driving_agent(params) {
    return axios.post(
      `${base.bd}/admin/driving_agent/check`,
      qs.stringify(params)
    );
  },
  del_driving_agent(params) {
    return axios.post(
      `${base.bd}/admin/driving_agent/del`,
      qs.stringify(params)
    );
  },

  get_driving_employee(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/lists`,
      qs.stringify(params)
    );
  },
  get_driving_employee_work(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/driving_work`,
      qs.stringify(params)
    );
  },
  single_driving_employee(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/edit`,
      qs.stringify(params)
    );
  },
  add_driving_employee(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/saveadd`,
      qs.stringify(params)
    );
  },
  save_driving_employee(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/saveedit`,
      qs.stringify(params)
    );
  },
  check_driving_employee(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/check`,
      qs.stringify(params)
    );
  },
  save_driving_captain(params) {
    return axios.post(
      `${base.bd}/admin/driving_captain/saveedit2`,
      qs.stringify(params)
    );
  },
  save_driving_captain2(params) {
    return axios.post(
      `${base.bd}/admin/driving_captain/saveedit3`,
      qs.stringify(params)
    );
  },
  del_driving_employee(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/del`,
      qs.stringify(params)
    );
  },

  get_ratinglist(params) {
    return axios.post(
      `${base.bd}/admin/driving_rating/lists`,
      qs.stringify(params)
    );
  },
  add_ratinglist(params) {
    return axios.post(
      `${base.bd}/admin/driving_rating/saveadd`,
      qs.stringify(params)
    );
  },
  del_ratinglist(params) {
    return axios.post(
      `${base.bd}/admin/driving_rating/del`,
      qs.stringify(params)
    );
  },
  edit_ratinglist(params) {
    return axios.post(
      `${base.bd}/admin/driving_rating/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_reward(params) {
    return axios.post(
      `${base.bd}/admin/driving_reward/lists`,
      qs.stringify(params)
    );
  },
  add_driving_reward(params) {
    return axios.post(
      `${base.bd}/admin/driving_reward/saveadd`,
      qs.stringify(params)
    );
  },
  del_driving_reward(params) {
    return axios.post(
      `${base.bd}/admin/driving_reward/del`,
      qs.stringify(params)
    );
  },
  edit_driving_reward(params) {
    return axios.post(
      `${base.bd}/admin/driving_reward/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_invoice_setup(params) {
    return axios.post(
      `${base.bd}/admin/driving_invoice_setup/lists`,
      qs.stringify(params)
    );
  },
  add_driving_invoice_setup(params) {
    return axios.post(
      `${base.bd}/admin/driving_invoice_setup/saveadd`,
      qs.stringify(params)
    );
  },
  del_driving_invoice_setup(params) {
    return axios.post(
      `${base.bd}/admin/driving_invoice_setup/del`,
      qs.stringify(params)
    );
  },
  edit_driving_invoice_setup(params) {
    return axios.post(
      `${base.bd}/admin/driving_invoice_setup/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_invoice_manage(params) {
    return axios.post(
      `${base.bd}/admin/driving_invoice/lists`,
      qs.stringify(params)
    );
  },

  del_driving_invoice_manage(params) {
    return axios.post(
      `${base.bd}/admin/driving_invoice/del`,
      qs.stringify(params)
    );
  },
  edit_driving_invoice_manage(params) {
    return axios.post(
      `${base.bd}/admin/driving_invoice/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_review(params) {
    return axios.post(
      `${base.bd}/admin/driving_review/lists`,
      qs.stringify(params)
    );
  },
  add_driving_review(params) {
    return axios.post(
      `${base.bd}/admin/driving_review/saveadd`,
      qs.stringify(params)
    );
  },
  del_driving_review(params) {
    return axios.post(
      `${base.bd}/admin/driving_review/del`,
      qs.stringify(params)
    );
  },
  edit_driving_review(params) {
    return axios.post(
      `${base.bd}/admin/driving_review/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_ordermode(params) {
    return axios.post(
      `${base.bd}/admin/driving_mode/lists`,
      qs.stringify(params)
    );
  },
  add_driving_ordermode(params) {
    return axios.post(
      `${base.bd}/admin/driving_mode/saveadd`,
      qs.stringify(params)
    );
  },
  del_driving_ordermode(params) {
    return axios.post(
      `${base.bd}/admin/driving_mode/del`,
      qs.stringify(params)
    );
  },
  edit_driving_ordermode(params) {
    return axios.post(
      `${base.bd}/admin/driving_mode/saveedit`,
      qs.stringify(params)
    );
  },
  get_driving_paymode(params) {
    return axios.post(
      `${base.bd}/admin/driving_cost/lists`,
      qs.stringify(params)
    );
  },
  add_driving_paymode(params) {
    return axios.post(
      `${base.bd}/admin/driving_cost/saveadd`,
      qs.stringify(params)
    );
  },
  del_driving_paymode(params) {
    return axios.post(
      `${base.bd}/admin/driving_cost/del`,
      qs.stringify(params)
    );
  },
  edit_driving_paymode(params) {
    return axios.post(
      `${base.bd}/admin/driving_cost/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_package_time(params) {
    return axios.post(
      `${base.bd}/admin/driving_package/lists`,
      qs.stringify(params)
    );
  },
  add_driving_package_time(params) {
    return axios.post(
      `${base.bd}/admin/driving_package/saveadd`,
      qs.stringify(params)
    );
  },
  del_driving_package_time(params) {
    return axios.post(
      `${base.bd}/admin/driving_package/del`,
      qs.stringify(params)
    );
  },
  edit_driving_package_time(params) {
    return axios.post(
      `${base.bd}/admin/driving_package/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_orderlist(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/lists`,
      qs.stringify(params)
    );
  },
  add_driving_orderlist(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/saveadd`,
      qs.stringify(params)
    );
  },
  del_driving_orderlist(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/del`,
      qs.stringify(params)
    );
  },
  edit_driving_orderlist(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/saveedit`,
      qs.stringify(params)
    );
  },

  confirm_orderpay(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/pay`,
      qs.stringify(params)
    );
  },

  cancel_order(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/cancel`,
      qs.stringify(params)
    );
  },
  single_order(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/edit`,
      qs.stringify(params)
    );
  },

  edit_orderdriver(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/modify_driver`,
      qs.stringify(params)
    );
  },
  edit_orderremark(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/saveedit`,
      qs.stringify(params)
    );
  },
  edit_ordercomplaint(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/complaint`,
      qs.stringify(params)
    );
  },

  get_driving_police(params) {
    return axios.post(
      `${base.bd}/admin/driving_police/lists`,
      qs.stringify(params)
    );
  },

  del_driving_police(params) {
    return axios.post(
      `${base.bd}/admin/driving_police/del`,
      qs.stringify(params)
    );
  },
  edit_driving_police(params) {
    return axios.post(
      `${base.bd}/admin/driving_police/saveedit`,
      qs.stringify(params)
    );
  },
  get_driving_report(params) {
    return axios.post(
      `${base.bd}/admin/driving_report/lists`,
      qs.stringify(params)
    );
  },

  del_driving_report(params) {
    return axios.post(
      `${base.bd}/admin/driving_report/del`,
      qs.stringify(params)
    );
  },

  get_driving_employeeAll(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/lists_all`,
      qs.stringify(params)
    );
  },
  add_driving_order(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/saveadd`,
      qs.stringify(params)
    );
  },
  distribute_driving_order(params) {
    return axios.post(
      `${base.bd}/admin/driving_order/distribute`,
      qs.stringify(params)
    );
  },
  get_order_info(params) {
    return axios.post(
      `${base.bd}/mobile/driving/order_info`,
      qs.stringify(params)
    );
  },

  get_driving_task(params) {
    return axios.post(
      `${base.bd}/admin/driving_task/lists`,
      qs.stringify(params)
    );
  },
  add_driving_task(params) {
    return axios.post(
      `${base.bd}/admin/driving_task/saveadd`,
      qs.stringify(params)
    );
  },
  edit_driving_task(params) {
    return axios.post(
      `${base.bd}/admin/driving_task/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_captain(params) {
    return axios.post(
      `${base.bd}/admin/driving_captain/lists`,
      qs.stringify(params)
    );
  },
  del_driving_captain(params) {
    return axios.post(
      `${base.bd}/admin/driving_captain/del`,
      qs.stringify(params)
    );
  },
  edit_driving_captain(params) {
    return axios.post(
      `${base.bd}/admin/driving_captain/saveedit`,
      qs.stringify(params)
    );
  },

  get_driving_agentlist(params) {
    return axios.post(
      `${base.bd}/admin/statistics_new/driving`,
      qs.stringify(params)
    );
  },
  get_driving_agentorder(params) {
    return axios.post(
      `${base.bd}/admin/statistics_new/driving_order`,
      qs.stringify(params)
    );
  },
  get_agentdata(params) {
    return axios.post(
      `${base.bd}/admin/driving_agent/statistics`,
      qs.stringify(params)
    );
  },
  get_motordata(params) {
    return axios.post(
      `${base.bd}/admin/driving_employee/driving_statistics`,
      qs.stringify(params)
    );
  },
};
export default getDriver;
